Help > Reference > Macros > Tab object > Entities property

Entities property

This property returns a collection of Entity objects representing the detected entities for the active search.

Member of

Tab

Type

Read-Only Variant property (Entities Collection)

The following example enumerates the email entities of the active tab, writing them to a file called "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Entity in App.ActiveTab.Entities
  If Entity.Type = 3 Then
    Output.WriteLine Entity.DisplayName
  End If
Next

See Also

Macro Object Model

Tab